import request from '@/utils/request'
// 登录函数
/**
 * @description: 登录函数
 * @param {*} data { mobile,password}
 * @return {*} promise
 */
export function getBuildingListAPI(params) {
  return request({
    url: '/park/building',
    params
  })
}
// 添加
export function createBuildingListAPI(data) {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}
/**
 * 添加楼宇
 * @param {*} data
 * @returns
 */
export function delBuildingListAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}
// 查看楼宇
export function editBuildingAPI(data) {
  return request({
    url: `/park/building`,
    method: 'put',
    data
  })
}

